/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.caresms.model;

import com.liferay.portal.model.ModelWrapper;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link Keyword_Sms_Relation}.
 * </p>
 *
 * @author    cc
 * @see       Keyword_Sms_Relation
 * @generated
 */
public class Keyword_Sms_RelationWrapper implements Keyword_Sms_Relation,
	ModelWrapper<Keyword_Sms_Relation> {
	public Keyword_Sms_RelationWrapper(
		Keyword_Sms_Relation keyword_Sms_Relation) {
		_keyword_Sms_Relation = keyword_Sms_Relation;
	}

	public Class<?> getModelClass() {
		return Keyword_Sms_Relation.class;
	}

	public String getModelClassName() {
		return Keyword_Sms_Relation.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("KeySmsId", getKeySmsId());
		attributes.put("SmsId", getSmsId());
		attributes.put("KeyId", getKeyId());
		attributes.put("Cat_Id", getCat_Id());
		attributes.put("field1", getField1());
		attributes.put("field2", getField2());
		attributes.put("field3", getField3());
		attributes.put("field4", getField4());
		attributes.put("field5", getField5());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		Long KeySmsId = (Long)attributes.get("KeySmsId");

		if (KeySmsId != null) {
			setKeySmsId(KeySmsId);
		}

		Long SmsId = (Long)attributes.get("SmsId");

		if (SmsId != null) {
			setSmsId(SmsId);
		}

		Long KeyId = (Long)attributes.get("KeyId");

		if (KeyId != null) {
			setKeyId(KeyId);
		}

		Long Cat_Id = (Long)attributes.get("Cat_Id");

		if (Cat_Id != null) {
			setCat_Id(Cat_Id);
		}

		String field1 = (String)attributes.get("field1");

		if (field1 != null) {
			setField1(field1);
		}

		Boolean field2 = (Boolean)attributes.get("field2");

		if (field2 != null) {
			setField2(field2);
		}

		Integer field3 = (Integer)attributes.get("field3");

		if (field3 != null) {
			setField3(field3);
		}

		Date field4 = (Date)attributes.get("field4");

		if (field4 != null) {
			setField4(field4);
		}

		String field5 = (String)attributes.get("field5");

		if (field5 != null) {
			setField5(field5);
		}
	}

	/**
	* Returns the primary key of this keyword_ sms_ relation.
	*
	* @return the primary key of this keyword_ sms_ relation
	*/
	public long getPrimaryKey() {
		return _keyword_Sms_Relation.getPrimaryKey();
	}

	/**
	* Sets the primary key of this keyword_ sms_ relation.
	*
	* @param primaryKey the primary key of this keyword_ sms_ relation
	*/
	public void setPrimaryKey(long primaryKey) {
		_keyword_Sms_Relation.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the key sms ID of this keyword_ sms_ relation.
	*
	* @return the key sms ID of this keyword_ sms_ relation
	*/
	public long getKeySmsId() {
		return _keyword_Sms_Relation.getKeySmsId();
	}

	/**
	* Sets the key sms ID of this keyword_ sms_ relation.
	*
	* @param KeySmsId the key sms ID of this keyword_ sms_ relation
	*/
	public void setKeySmsId(long KeySmsId) {
		_keyword_Sms_Relation.setKeySmsId(KeySmsId);
	}

	/**
	* Returns the sms ID of this keyword_ sms_ relation.
	*
	* @return the sms ID of this keyword_ sms_ relation
	*/
	public long getSmsId() {
		return _keyword_Sms_Relation.getSmsId();
	}

	/**
	* Sets the sms ID of this keyword_ sms_ relation.
	*
	* @param SmsId the sms ID of this keyword_ sms_ relation
	*/
	public void setSmsId(long SmsId) {
		_keyword_Sms_Relation.setSmsId(SmsId);
	}

	/**
	* Returns the key ID of this keyword_ sms_ relation.
	*
	* @return the key ID of this keyword_ sms_ relation
	*/
	public long getKeyId() {
		return _keyword_Sms_Relation.getKeyId();
	}

	/**
	* Sets the key ID of this keyword_ sms_ relation.
	*
	* @param KeyId the key ID of this keyword_ sms_ relation
	*/
	public void setKeyId(long KeyId) {
		_keyword_Sms_Relation.setKeyId(KeyId);
	}

	/**
	* Returns the cat_ ID of this keyword_ sms_ relation.
	*
	* @return the cat_ ID of this keyword_ sms_ relation
	*/
	public long getCat_Id() {
		return _keyword_Sms_Relation.getCat_Id();
	}

	/**
	* Sets the cat_ ID of this keyword_ sms_ relation.
	*
	* @param Cat_Id the cat_ ID of this keyword_ sms_ relation
	*/
	public void setCat_Id(long Cat_Id) {
		_keyword_Sms_Relation.setCat_Id(Cat_Id);
	}

	/**
	* Returns the field1 of this keyword_ sms_ relation.
	*
	* @return the field1 of this keyword_ sms_ relation
	*/
	public java.lang.String getField1() {
		return _keyword_Sms_Relation.getField1();
	}

	/**
	* Sets the field1 of this keyword_ sms_ relation.
	*
	* @param field1 the field1 of this keyword_ sms_ relation
	*/
	public void setField1(java.lang.String field1) {
		_keyword_Sms_Relation.setField1(field1);
	}

	/**
	* Returns the field2 of this keyword_ sms_ relation.
	*
	* @return the field2 of this keyword_ sms_ relation
	*/
	public boolean getField2() {
		return _keyword_Sms_Relation.getField2();
	}

	/**
	* Returns <code>true</code> if this keyword_ sms_ relation is field2.
	*
	* @return <code>true</code> if this keyword_ sms_ relation is field2; <code>false</code> otherwise
	*/
	public boolean isField2() {
		return _keyword_Sms_Relation.isField2();
	}

	/**
	* Sets whether this keyword_ sms_ relation is field2.
	*
	* @param field2 the field2 of this keyword_ sms_ relation
	*/
	public void setField2(boolean field2) {
		_keyword_Sms_Relation.setField2(field2);
	}

	/**
	* Returns the field3 of this keyword_ sms_ relation.
	*
	* @return the field3 of this keyword_ sms_ relation
	*/
	public int getField3() {
		return _keyword_Sms_Relation.getField3();
	}

	/**
	* Sets the field3 of this keyword_ sms_ relation.
	*
	* @param field3 the field3 of this keyword_ sms_ relation
	*/
	public void setField3(int field3) {
		_keyword_Sms_Relation.setField3(field3);
	}

	/**
	* Returns the field4 of this keyword_ sms_ relation.
	*
	* @return the field4 of this keyword_ sms_ relation
	*/
	public java.util.Date getField4() {
		return _keyword_Sms_Relation.getField4();
	}

	/**
	* Sets the field4 of this keyword_ sms_ relation.
	*
	* @param field4 the field4 of this keyword_ sms_ relation
	*/
	public void setField4(java.util.Date field4) {
		_keyword_Sms_Relation.setField4(field4);
	}

	/**
	* Returns the field5 of this keyword_ sms_ relation.
	*
	* @return the field5 of this keyword_ sms_ relation
	*/
	public java.lang.String getField5() {
		return _keyword_Sms_Relation.getField5();
	}

	/**
	* Sets the field5 of this keyword_ sms_ relation.
	*
	* @param field5 the field5 of this keyword_ sms_ relation
	*/
	public void setField5(java.lang.String field5) {
		_keyword_Sms_Relation.setField5(field5);
	}

	public boolean isNew() {
		return _keyword_Sms_Relation.isNew();
	}

	public void setNew(boolean n) {
		_keyword_Sms_Relation.setNew(n);
	}

	public boolean isCachedModel() {
		return _keyword_Sms_Relation.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_keyword_Sms_Relation.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _keyword_Sms_Relation.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _keyword_Sms_Relation.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_keyword_Sms_Relation.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _keyword_Sms_Relation.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_keyword_Sms_Relation.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new Keyword_Sms_RelationWrapper((Keyword_Sms_Relation)_keyword_Sms_Relation.clone());
	}

	public int compareTo(
		com.caresms.model.Keyword_Sms_Relation keyword_Sms_Relation) {
		return _keyword_Sms_Relation.compareTo(keyword_Sms_Relation);
	}

	@Override
	public int hashCode() {
		return _keyword_Sms_Relation.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.caresms.model.Keyword_Sms_Relation> toCacheModel() {
		return _keyword_Sms_Relation.toCacheModel();
	}

	public com.caresms.model.Keyword_Sms_Relation toEscapedModel() {
		return new Keyword_Sms_RelationWrapper(_keyword_Sms_Relation.toEscapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _keyword_Sms_Relation.toString();
	}

	public java.lang.String toXmlString() {
		return _keyword_Sms_Relation.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_keyword_Sms_Relation.persist();
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public Keyword_Sms_Relation getWrappedKeyword_Sms_Relation() {
		return _keyword_Sms_Relation;
	}

	public Keyword_Sms_Relation getWrappedModel() {
		return _keyword_Sms_Relation;
	}

	public void resetOriginalValues() {
		_keyword_Sms_Relation.resetOriginalValues();
	}

	private Keyword_Sms_Relation _keyword_Sms_Relation;
}